how to check internet connection using javascript

welcome to shbcf.ru